lukeguo
07/22/2025, 11:30 AMgeneric_id and generic_token.
My current implementation:
connRequest = await withTimeout(composio.connectedAccounts.initiate(userId, authConfigId, customParams));
The customParams is a simple Record
object with keys matching the configuration:
{
"generic_token": "actual_developer_token_value",
"generic_id": "1234567890"
}
The request ID is a5fb454a-35cb-4137-b8d5-5f8f1b31ae6d.Composio Support Agent
07/24/2025, 7:34 AMts
import { Composio } from '@composio/core';
const composio = new Composio({ apiKey: '<compsosio-api-key>' });
const connectionRequest = await composio.connectedAccounts.initiate(
'<user-id>',
'ac_xxxxx',
{
config: {
authScheme: 'OAUTH2',
// @ts-ignore
val: {
generic_token: '<developer-token>',
generic_id: '<customer-id>',
}
}
}
);
console.log(connectionRequest.redirectUrl);
Also, please ensure you're using the latest version of the [Composio](https://www.npmjs.com/package/@composio/core/v/0.1.37) SDK.
Let us know if you run into anything else!